package com.example.demo.mapper;

import com.example.demo.model.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2023-02-14
 * Time:10:58
 */
@Mapper
public interface UserMapper {
    public int add(@Param("username") String username,@Param("password") String password);
    public Userinfo login(@Param("username")String username,@Param("password")String password);
    public Userinfo selectById(@Param("uid") Integer uid);
    public Userinfo getUserByName(@Param("username")String username);
}
